package com.jk.thread;



public class MyThread extends Thread{

    private String threadName;
    public MyThread (String threadName){
        this.threadName=threadName;
    }
    @Override
    public void run(){
        for (int i = 0; i <50 ; i++) {
            try {
                Thread.sleep(500);
            }catch (InterruptedException e){
                e.printStackTrace();
            }
            System.out.println(threadName+" : "+i);
        }
    }



}
